package com.liuyingxing.javaSpringCloudAccount.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.liuyingxing.entity.account.Resource;
import com.liuyingxing.entity.common.Result;
import com.liuyingxing.entity.common.SearchBean;


/**
 * Created by IntelliJ IDEA.
 * @File ResourceService.java
 * @Auth liuxing
 * @Date 2021/8/23 17:45
 * @Email liuxing997@foxmail.com
 */
public interface ResourceService {

	//插入资源信息
	Result<Resource> insertResource(Resource resource);

	//更新资源信息
	Result<Resource> updateResource(Resource resource);

	//删除资源信息
	Result<Object> deleteResourceById(int id);

	//根据ID查询资源信息
	Resource getResourceById(int id);

	//根据角色ID查询资源信息
	List<Resource> getResourcesByRoleId(int roleId);

	//分页查询资源信息
	PageInfo<Resource> getResourcesBySearchBean(SearchBean searchBean);
}
